package com.stone.serverless.event.service;

import com.stone.serverless.event.domain.EventKey;
import com.stone.serverless.event.function.DPSupplier;

import java.lang.reflect.Method;
import java.util.function.Supplier;

/**
 * @Description: TODO
 * @Author: MECHREVO
 * @Date: 2022/2/7 10:26
 * @Version: 1.0.0
 */
public interface EventBusService {

    void publish(EventKey event);

   <T> void listener(String key, Supplier<T> test1, Object obj);

    <T> void listener(String key, Supplier<T> test1);

    //void listener(String key, Method method, Object o);
}
